<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li ><a href="{:url('Channel/index')}">列表</a></li>
			<li class="active"><a >{:lang('ADD')}</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Channel/channel_addPost')}">

            <div class="form-group">
				<label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>名称</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-name" name="title">
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>图片</label>
				<div class="col-md-6 col-sm-10">
                    <input type="hidden" name="img_url" id="thumb" value="">
                    <a href="javascript:uploadOneImage('图片上传','#thumb');">
                        <img src="__TMPL__/public/assets/images/default-thumbnail.png" id="thumb-preview"
                             width="135" style="cursor: hand"/>
                    </a>
                    <input type="button" class="btn btn-sm"
                           onclick="$('#thumb-preview').attr('src','__TMPL__/public/assets/images/default-thumbnail.png');$('#thumb').val('');return false;"
                           value="取消图片">

				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">赠送</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-name" name="calculate">
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">赠送比例(%)</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-name" name="percentage">
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">手续费</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-name" name="fee">
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">最大充值钻石数量</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-name" name="max">
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">最小充值钻石数量</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-name" name="min">
				</div>
			</div>
			<div class="form-group">
				<label for="input-sex" class="col-sm-2 control-label"><span class="form-required">*</span>是否开启</label>
				<div class="col-md-6 col-sm-10">
					<label class="radio-inline"><input type="radio" name="is_open" value="1" checked>是</label>
					<label class="radio-inline"><input type="radio" name="is_open" value="0" >否</label>
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">支持的国家</label>
				<div class="col-md-6 col-sm-10">
				    <!--{volist name="lists" key="k" id="vo"}
                        <div style="margin:10px">
                            <input type="checkbox" name="country_ids[]" value="{ $vo.id }">
                            <label for="{ $vo.id }">{ $vo.name }</label>
                        </div>
                    {/volist}-->
                    <volist name="countrys" id="vo">
						<label class="checkbox-inline"><input type="checkbox" value="{$vo['id']}" name="countrys[]"><span>{$vo['name']}</span></label>
					</volist>
				</div>
			</div>
            
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
					<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
				</div>
			</div>
            
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>
